package cn.pupil.design.impl;


/**
 * @Description: 扩展微信支付，添加从银行卡扣钱
 * @Author: pupil
 * @Date: 2024/06/22 下午 9:33
 */
public class WeChatdProcessorExt extends WeChatProcessor {

    /**
     * 当amount大于100时用银行卡支付
     * @param amount
     */
    @Override
    public void processPayment(double amount) {
        if (amount<=100){
            System.out.println("使用微信余额支付");
        }else {
            System.out.println("使用银行卡支付");
        }
    }

}
